<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>拆分歌词</title>
</head>
<body>
<script>
    var words = "夜里做了美丽的恶梦 " +
            "想清醒我却抵不住心动 " +
            "梦里你是无底的黑洞 " +
            "我无力抗拒失重 " +
            "我的意识自控脉搏流动 " +
            "全被你神秘吸引操控 " +
            "亲爱的你是危险的迷宫 " +
            "我找不到出口";
    var a = words.split(" ");
    for (var i = 0;i < a.length;i++){
        document.write(a[i] + "<br>");
    }
</script>
</body>
</html>